<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2017/11/10
  Time: 11:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <base href="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}">
    <title>火车票查询系统——信息显示</title>
</head>
<body>
    <p>火车票查询系统——信息显示</p>
        <table cellspacing="0" cellpadding="0" border="1" style="width: 300px;height:100px">
            <tr>
                <td>发车点</td>
                <td>终点</td>
                <td>车次</td>
                <td>价格</td>
            </tr>
            <c:if test="${not empty MAP}">
                <tr>
                    <td>${MAP["startStation"]}</td>
                    <td>${MAP["endStation"]}</td>
                    <td>${MAP["trainNum"]}</td>
                    <td>${MAP["sitePrice"]}</td>
                </tr>
            </c:if>
            <c:if test="${empty MAP}">
                <tr>
                    <td colspan="4" style="color: red">没有找到合适的数据</td>
                </tr>
            </c:if>
        </table>
</body>
</html>
